import { defineBuildConfig } from "unbuild";

export default defineBuildConfig({
  entries: ["./src/index"],
  clean: true,
  rollup: {
    emitCJS: true, // 👉 启用 CommonJS 输出
    inlineDependencies: true,
    esbuild: {
      target: "node20",
      minify: true,
    },
  },
});
